#ifndef __VIDEO_H__
#define __VIDEO_H__


#include "..\GUISys\define.h"

#define VID_PLAY   10
#define VID_HOME   11
#define VID_END    12
#define VID_STEP   13
#define VID_RSTEP  14
#define VID_RPLAY  15

#define IDS_NOOPEN			5
#define IDS_FILTERSTRING	6

//----------------------------------------------------------------------------
//function declarations

EXTERNC BOOL initAVI(void);
EXTERNC void termAVI(void);

EXTERNC void positionMovie(void);
EXTERNC void fileCloseMovie(void);
EXTERNC void fileOpenMovie(void);
EXTERNC void playMovie(int);
EXTERNC void seekMovie(int);
EXTERNC void stepMovie(int);

//----------------------------------------------------------------------------
//AVI stuff to keep around

#define BUFSIZE 260
HINSTANCE ghInst;
HWND ghwndParent, ghwndMovie;	/* window handle of the movie */
BOOL gfPlaying = FALSE;			/* Play flag: TRUE == playing, FALSE == paused */
BOOL gfMovieOpen = FALSE;		/* Open flag: TRUE == movie open, FALSE = none */
char gszBuffer[BUFSIZE];

//----------------------------------------------------------------------------
//interface
EXTERNC DLLFUNCTION void Init_Video(HINSTANCE, HWND);
EXTERNC DLLFUNCTION void Destroy_Video(void);
EXTERNC DLLFUNCTION void Play_Video(BOOL);
EXTERNC DLLFUNCTION void Pause_Video(void);
EXTERNC DLLFUNCTION void Stop_Video(void);
EXTERNC DLLFUNCTION void Replay_Video(void);


#endif